<?php
/**
 * \file    questionbank.php
 * \author  Manori
 * \date    May 10, 2010
 * \version 1.0
 */
 ?>
<?php
/* LOGIN SEQUENCE
 * This php code must be included at the top of every page
 *
 */
session_start();
require_once "../basicInfo/user.php";
//require('../basicInfo/user.php');
$_SESSION['currentPage'] = "questionbank";
if(isset($_SESSION['userinfo'])) {
    $userinfo=unserialize($_SESSION['userinfo']);    
}else {
  $_SESSION['signinNeed']="true";
  //header("Location:../../index.php");
   echo '<script language="javascript">location.replace("../../index.php");</script>';
}
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>Debugger MMO</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="en-US" />

</head>
    <body>
<?php include "../../layout/header.php"; ?>
<?php include "../../layout/navleft.php"; ?>
        <div id="content_small"><div class="container_brown">
					<center><b>Welcome to the question bank!</b></center>
					<BR><BR><BR>
					
					<form action="addquestion.php" method="GET">
					<center><input type="submit" id="button1" name="addquestion" value="Add A Question"></center>
					</form>
					<BR>
					<form action="viewquestions.php" method="GET">
					<center><input type="submit" id="button2" name="viewquestion" value="View Questions"></center>
					<input type="hidden" name="status" value=""/>
					<input type="hidden" name="page" value=""/>
					</form>
					<BR>
					<?php 
					   if($userinfo->getRole()=='V'|| $userinfo->getRole() == 'A') 
						   $page="validatequestions.php";
                       else
						   $page="notvalidator.php";

					   echo '<form action="'.$page.'" method="GET">'.
					        '<center><input type="submit" id="button3" name="validatequestion" value="Validate Questions"></center>'.
					        '<input type="hidden" name=page>'.
					         '</form>';
					   ?>
		<BR><BR><BR>
		</div></div>


<?php include "../../layout/navright.php"; ?>
<?php include "../../layout/footer.php"; ?>
</body>
</html>